package com.hua.store.service;

import com.hua.store.domin.OrderItem;
import com.hua.store.domin.Orders;
import com.hua.store.domin.PageModel;
import com.hua.store.domin.User;

import java.sql.SQLException;
import java.util.List;

public interface OrderService {
    void saveOrder(Orders orders) throws Exception;

    PageModel findOrdersByUidWithPage(User user, int curNum) throws Exception;

    Orders findOrderByOid(String oid) throws Exception;

    void updateOrder(Orders orders) throws SQLException;

    List<Orders> findAllOrder() throws SQLException;

    List<Orders> findAllOrder(String state) throws SQLException;
}
